<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Download extends CI_Controller 
{
	
	public	function __construct()
	{
		parent::__construct();
		if($this->session->userdata('user_id')){
			//$this->load->helper("url");
			$this->load->model("downloads");
			$this->load->model("users");
			//$this->load->model("lich");
			date_default_timezone_set('Asia/Ho_Chi_Minh');
		}
		else{
			redirect('login');
		}
	}
	
	public function index()
	{
		$this->viewAllDownload();
	}
	
	public function viewAllDownload()
	{
		//$data['alldowload'] = $this->downloads->getAllDownload();
		$menu['menu'] = "download";
		$this->load->view('header_block_v1',$menu);
		$this->load->view('content_sidebar_block',$menu);
		$this->load->view('download/viewListDownload');
		$this->load->view('footer_block');
	}
}